{if isset($smarty.session.logged_in)}
	<h1>Kayitli</h1>
	<p>Siz zaten jayitlisiniz.</p>
{elseif isset($smarty.session.regsuccess)}
	{if ($smarty.session.regsuccess)}
		<h1>Kayit</h1>
		<p>Kaydoldugunuz icin tesekk�r ederiz <em>{$smarty.session.reguname}</em>. 
		Simdi giris yapabilirsiniz.</p>
	{else}
		<h1>Kayit hatasi!<h1>
		<p><em>{$smarty.session.reguname}</em> hesabiniz olustururken bir hata olustu. 
		L�tfen sonra tekrar deneyin.</p>
	{/if}
{else}
	<h1>Yeni Kayit</h1>
	<p>{$my_form->error("user")}</p>
	<form action="process.php" method="POST">
		<input type="hidden" name="subjoin" value="1"/>
		<table>
			<tr>
				<td><label>Kullanici:</label></td>
				<td><input type="text" name="user" maxlength="30" value="{$my_form->value('user')}"/></td>
				<td>{$my_form->error("user")}</td>
			</tr>
			<tr>
				<td><label>Sifre:</label></td>
				<td><input type="password" name="pass" maxlength="30"/></td>
				<td>{$my_form->error("pass")}</td>
			</tr>
			<tr>
				<td><label>e-Posta:</label></td>
				<td><input type="text" name="email" maxlength="50" value="{$my_form->value('email')}"/></td>
				<td>{$my_form->error("email")}</td>
			</tr>
		</table>
		<input type="submit" value="Gönder"/>
	</form>		
{/if}	